package com.chinanet.oracle.entry;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Entity
@Table(name = "MONITOR_USER")
public class User implements Serializable {
    @Id
    @Column(name="ID")
    private BigDecimal id;

    @Column(name="NAME")
    private String name;

    @Column(name="ACCOUNT")
    private String account;

    @Column(name="PSW")
    private String psw;

    @Column(name="DEPARTMENTID")
    private BigDecimal departmentId;

    @Column(name="STATUS")
    private BigDecimal status;

    @Column(name="PHONE")
    private String phone;

    @Column(name="CREATETIME")
    private Date createTime;

    @Column(name="PRIORITY")
    private String priority;

    @Column(name="AREANO")
    private BigDecimal areano;

    @Column(name="AREANAME")
    private String areaName;

    @JoinColumn(name="ROLEID",referencedColumnName = "ID")
    @OneToOne(fetch = FetchType.EAGER)
    private Role role;

    public BigDecimal getId() {
        return id;
    }

    public void setId(BigDecimal id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPsw() {
        return psw;
    }

    public void setPsw(String psw) {
        this.psw = psw;
    }

    public BigDecimal getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(BigDecimal departmentId) {
        this.departmentId = departmentId;
    }

    public BigDecimal getStatus() {
        return status;
    }

    public void setStatus(BigDecimal status) {
        this.status = status;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getPriority() {
        return priority;
    }

    public void setPriority(String priority) {
        this.priority = priority;
    }

    public BigDecimal getAreano() {
        return areano;
    }

    public void setAreano(BigDecimal areano) {
        this.areano = areano;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }
}
